--- /usr/share/debootstrap/scripts/sid	2016-05-11 15:43:45.396062439 +0000
+++ data/debootstrap/tails-wheezy	2016-05-11 15:38:08.949103098 +0000
@@ -201,4 +201,8 @@
 
 	progress $bases $bases CONFBASE "Configuring base system"
 	info BASESUCCESS "Base system installed successfully."
+
+	# Tails-specific part:
+	chroot $TARGET /usr/sbin/dpkg-divert --divert /usr/bin/apt-get.real --rename /usr/bin/apt-get
+	cp -f %%topdir%%/data/wrappers/apt-get $TARGET/usr/bin/apt-get
 }
